package com.ymxk.timestar.activity.adapter;

import android.content.Context;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter4.BaseQuickAdapter;
import com.chad.library.adapter4.viewholder.QuickViewHolder;
import com.ymxk.timestar.activity.R;
import com.ymxk.timestar.view.drag.DragDataEntity;

/**
 * Created by zxn on 2024/12/15.
 */
public class RecyclerImageAdapter extends BaseQuickAdapter<DragDataEntity, QuickViewHolder> {

    @Override
    protected void onBindViewHolder(@NonNull QuickViewHolder quickViewHolder, int position, @Nullable DragDataEntity entity) {
        quickViewHolder.setText(R.id.tvName, "位移" + position);
    }

    @NonNull
    @Override
    protected QuickViewHolder onCreateViewHolder(@NonNull Context context, @NonNull ViewGroup viewGroup, int i) {
        return new QuickViewHolder(R.layout.item_recycler_image_list, viewGroup);
    }
}
